﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="QuanLyLop_Ban.aspx.cs" Inherits="QuanTri_NhapHSBS" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                   Quản lý Lớp-Ban
                </div>
                 <asp:UpdatePanel ID="up" runat="server">
                 <ContentTemplate>
                 <span style="margin-left:10px">Năm học </span>&nbsp
                    <asp:DropDownList ID="ddlNam" runat="server" Width="120px" 
                        ></asp:DropDownList>
                   <span style="padding-left:50px">Khối học</span>&nbsp
                   <asp:DropDownList ID="ddlKhoi" runat="server" Width="120px" 
                    AutoPostBack="True" onselectedindexchanged="ddlKhoi_SelectedIndexChanged" ></asp:DropDownList>
                  <span style="padding-left:50px">Ban học</span>&nbsp
                  <asp:DropDownList ID="ddlBan" runat="server" Width="120px" ></asp:DropDownList>
               </div><br />
                <div style="width:100%;margin-bottom:30px">
               <div style="width:30%;float:left">
               <div style="color:Blue;font-size:14px;width:150px;margin-left:10px;float:left;margin-bottom:10px">
                 Danh sách lớp học
                 </div><br />
                 <div style="width:100%;float:left">
                   <asp:GridView ID="grvdsLop" CssClass="Grid" AutoGenerateColumns="False" Width="100%" Height="28px" runat="server">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                    <asp:TemplateField>
                     <HeaderTemplate>
                          Chọn
                     </HeaderTemplate>
                      <ItemTemplate>
                        <asp:CheckBox ID="ckItem" runat="server" AutoPostBack="true" />
                      </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="Lớp học">
                      <ItemTemplate>
                       <center>
                         <asp:Label ID="lblMaLop" Text='<%#Bind("MaLop") %>' Visible="false" runat="server">
                         </asp:Label>
                         <%#Eval("TenLop") %>
                       </center>
                      </ItemTemplate>
                     </asp:TemplateField>
                    </Columns>
                     <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                   </asp:GridView>
               </div><br />
               <asp:CheckBox ID="ckTatCa" CssClass="CheckBox1" runat="server"
                           AutoPostBack="true" oncheckedchanged="ckTatCa_CheckedChanged" />Chọn hết
              </div>
               <div style="width:65%;float:left;margin-left:20px">
               <div style="width:200px;color:Blue;font-size:14px;margin-bottom:10px">
                Danh sách phân lớp theo ban
               </div>
               <div>
                   <asp:GridView ID="grvPhanBan" AutoGenerateColumns="False" Width="100%" 
                       Height="28px" runat="server" ShowFooter="True" 
                       onselectedindexchanged="grvPhanBan_SelectedIndexChanged" onrowcommand="grvPhanBan_RowCommand" 
                       >
                     <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                     <asp:TemplateField HeaderText="Năm học">
                      <ItemTemplate>
                       <center>
                         <asp:Label ID="lblMaNam" runat="server" Text='<%#Bind("MaNam") %>' Visible="false"></asp:Label>
                         <%#Eval("TenNam") %>
                       </center>
                      </ItemTemplate>
                     </asp:TemplateField>
                      <asp:TemplateField HeaderText="Lớp học">
                      <ItemTemplate>
                      <center>
                          <asp:Label ID="lblMaLop" runat="server" Text='<%#Bind("MaLop") %>' Visible="false"></asp:Label>
                          <%#Eval("TenLop") %></center>
                      </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Ban học">
                      <ItemTemplate>
                      <center>
                       <%#Eval("TenBan") %></center>
                      </ItemTemplate>
                     </asp:TemplateField>
                    <asp:CommandField ShowSelectButton="true"  HeaderText="Chọn" ControlStyle-Font-Underline="true"
                                ControlStyle-ForeColor="Blue" SelectText="Chọn">
                      <ControlStyle Font-Underline="True" ForeColor="Blue"></ControlStyle>
                        </asp:CommandField>
                         <asp:TemplateField HeaderText="Phân GVCN">
                      <ItemTemplate><center>
                       <asp:LinkButton ID="lbtPhan" Text="Phân GVCN" CommandName="PhanGVCN" Font-Underline="true" ForeColor="blue" runat="server"></asp:LinkButton></center>
                      </ItemTemplate>
                     </asp:TemplateField>
                    </Columns>
                     <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                   </asp:GridView>
               </div>
               </div>
               </div>
                       <div style="padding-left: 210px; padding-top: 10px;">
                        <asp:Button runat="server" ID="btnLuu" CssClass="button" Text="Phân ban" onclick="btnLuu_Click"
                        />&nbsp;&nbsp;
                        <asp:Button runat="server" ID="btnSua" CssClass="button" Text="Sửa" onclick="btnSua_Click"
                        />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnXoa" CssClass="button" Text="Hủy" 
                               onclick="btnXoa_Click" />
                </div>
            </div>
                   </ContentTemplate>
                 </asp:UpdatePanel>
        </div>
</asp:Content>

